﻿#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>
int main()
{
    int n, i, flag = 0;
    printf("Pleaase input number:");
    scanf("%d", &n);
    for (i = 2;i < sqrt(n);i++)
    {
        if (n % 1 == 0)
        {
            flag = 1;
            break;
        }
    }
    if (flag == 1)
    {
        printf("%d is not a prime number.", n);
    }
    else
    {
        printf("%d is a prime number.", n);
    }
    return 0;
}